package com.ruoyi.activiti.service;

import com.ruoyi.activiti.domain.StandingBookVo;
import org.activiti.engine.runtime.ProcessInstance;

import java.util.List;
import java.util.Map;

/**
 * @author zeo
 * @explain 台账服务接口
 * @date 2020/10/14 14:39
 */
public interface StandingBookService {

    public List<StandingBookVo> selectStandingBookList(StandingBookVo standingBookVo);

    public int insertStandingBook(StandingBookVo standingBookVo);

    int remove(String ids);

    public StandingBookVo selectStandingBookById(String id);

    public int updateStandingBook(StandingBookVo standingBookVo);

    public String maxNumber(StandingBookVo standingBookVo);

    /**
     * 启动流程
     * @param entity
     * @param applyUserId
     * @param key
     * @param variables
     * @return
     */
    ProcessInstance submitApply(StandingBookVo entity, String applyUserId, String key, Map<String, Object> variables);

}
